package com.zlt.appparking.entity;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ParkingOrderExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ParkingOrderExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPoIdIsNull() {
            addCriterion("po_id is null");
            return (Criteria) this;
        }

        public Criteria andPoIdIsNotNull() {
            addCriterion("po_id is not null");
            return (Criteria) this;
        }

        public Criteria andPoIdEqualTo(Integer value) {
            addCriterion("po_id =", value, "poId");
            return (Criteria) this;
        }

        public Criteria andPoIdNotEqualTo(Integer value) {
            addCriterion("po_id <>", value, "poId");
            return (Criteria) this;
        }

        public Criteria andPoIdGreaterThan(Integer value) {
            addCriterion("po_id >", value, "poId");
            return (Criteria) this;
        }

        public Criteria andPoIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("po_id >=", value, "poId");
            return (Criteria) this;
        }

        public Criteria andPoIdLessThan(Integer value) {
            addCriterion("po_id <", value, "poId");
            return (Criteria) this;
        }

        public Criteria andPoIdLessThanOrEqualTo(Integer value) {
            addCriterion("po_id <=", value, "poId");
            return (Criteria) this;
        }

        public Criteria andPoIdIn(List<Integer> values) {
            addCriterion("po_id in", values, "poId");
            return (Criteria) this;
        }

        public Criteria andPoIdNotIn(List<Integer> values) {
            addCriterion("po_id not in", values, "poId");
            return (Criteria) this;
        }

        public Criteria andPoIdBetween(Integer value1, Integer value2) {
            addCriterion("po_id between", value1, value2, "poId");
            return (Criteria) this;
        }

        public Criteria andPoIdNotBetween(Integer value1, Integer value2) {
            addCriterion("po_id not between", value1, value2, "poId");
            return (Criteria) this;
        }

        public Criteria andPoNoIsNull() {
            addCriterion("po_no is null");
            return (Criteria) this;
        }

        public Criteria andPoNoIsNotNull() {
            addCriterion("po_no is not null");
            return (Criteria) this;
        }

        public Criteria andPoNoEqualTo(String value) {
            addCriterion("po_no =", value, "poNo");
            return (Criteria) this;
        }

        public Criteria andPoNoNotEqualTo(String value) {
            addCriterion("po_no <>", value, "poNo");
            return (Criteria) this;
        }

        public Criteria andPoNoGreaterThan(String value) {
            addCriterion("po_no >", value, "poNo");
            return (Criteria) this;
        }

        public Criteria andPoNoGreaterThanOrEqualTo(String value) {
            addCriterion("po_no >=", value, "poNo");
            return (Criteria) this;
        }

        public Criteria andPoNoLessThan(String value) {
            addCriterion("po_no <", value, "poNo");
            return (Criteria) this;
        }

        public Criteria andPoNoLessThanOrEqualTo(String value) {
            addCriterion("po_no <=", value, "poNo");
            return (Criteria) this;
        }

        public Criteria andPoNoLike(String value) {
            addCriterion("po_no like", value, "poNo");
            return (Criteria) this;
        }

        public Criteria andPoNoNotLike(String value) {
            addCriterion("po_no not like", value, "poNo");
            return (Criteria) this;
        }

        public Criteria andPoNoIn(List<String> values) {
            addCriterion("po_no in", values, "poNo");
            return (Criteria) this;
        }

        public Criteria andPoNoNotIn(List<String> values) {
            addCriterion("po_no not in", values, "poNo");
            return (Criteria) this;
        }

        public Criteria andPoNoBetween(String value1, String value2) {
            addCriterion("po_no between", value1, value2, "poNo");
            return (Criteria) this;
        }

        public Criteria andPoNoNotBetween(String value1, String value2) {
            addCriterion("po_no not between", value1, value2, "poNo");
            return (Criteria) this;
        }

        public Criteria andPlIdIsNull() {
            addCriterion("pl_id is null");
            return (Criteria) this;
        }

        public Criteria andPlIdIsNotNull() {
            addCriterion("pl_id is not null");
            return (Criteria) this;
        }

        public Criteria andPlIdEqualTo(Integer value) {
            addCriterion("pl_id =", value, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdNotEqualTo(Integer value) {
            addCriterion("pl_id <>", value, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdGreaterThan(Integer value) {
            addCriterion("pl_id >", value, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("pl_id >=", value, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdLessThan(Integer value) {
            addCriterion("pl_id <", value, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdLessThanOrEqualTo(Integer value) {
            addCriterion("pl_id <=", value, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdIn(List<Integer> values) {
            addCriterion("pl_id in", values, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdNotIn(List<Integer> values) {
            addCriterion("pl_id not in", values, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdBetween(Integer value1, Integer value2) {
            addCriterion("pl_id between", value1, value2, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdNotBetween(Integer value1, Integer value2) {
            addCriterion("pl_id not between", value1, value2, "plId");
            return (Criteria) this;
        }

        public Criteria andAuIdIsNull() {
            addCriterion("au_id is null");
            return (Criteria) this;
        }

        public Criteria andAuIdIsNotNull() {
            addCriterion("au_id is not null");
            return (Criteria) this;
        }

        public Criteria andAuIdEqualTo(String value) {
            addCriterion("au_id =", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdNotEqualTo(String value) {
            addCriterion("au_id <>", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdGreaterThan(String value) {
            addCriterion("au_id >", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdGreaterThanOrEqualTo(String value) {
            addCriterion("au_id >=", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdLessThan(String value) {
            addCriterion("au_id <", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdLessThanOrEqualTo(String value) {
            addCriterion("au_id <=", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdLike(String value) {
            addCriterion("au_id like", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdNotLike(String value) {
            addCriterion("au_id not like", value, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdIn(List<String> values) {
            addCriterion("au_id in", values, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdNotIn(List<String> values) {
            addCriterion("au_id not in", values, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdBetween(String value1, String value2) {
            addCriterion("au_id between", value1, value2, "auId");
            return (Criteria) this;
        }

        public Criteria andAuIdNotBetween(String value1, String value2) {
            addCriterion("au_id not between", value1, value2, "auId");
            return (Criteria) this;
        }

        public Criteria andPoPriceIsNull() {
            addCriterion("po_price is null");
            return (Criteria) this;
        }

        public Criteria andPoPriceIsNotNull() {
            addCriterion("po_price is not null");
            return (Criteria) this;
        }

        public Criteria andPoPriceEqualTo(BigDecimal value) {
            addCriterion("po_price =", value, "poPrice");
            return (Criteria) this;
        }

        public Criteria andPoPriceNotEqualTo(BigDecimal value) {
            addCriterion("po_price <>", value, "poPrice");
            return (Criteria) this;
        }

        public Criteria andPoPriceGreaterThan(BigDecimal value) {
            addCriterion("po_price >", value, "poPrice");
            return (Criteria) this;
        }

        public Criteria andPoPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("po_price >=", value, "poPrice");
            return (Criteria) this;
        }

        public Criteria andPoPriceLessThan(BigDecimal value) {
            addCriterion("po_price <", value, "poPrice");
            return (Criteria) this;
        }

        public Criteria andPoPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("po_price <=", value, "poPrice");
            return (Criteria) this;
        }

        public Criteria andPoPriceIn(List<BigDecimal> values) {
            addCriterion("po_price in", values, "poPrice");
            return (Criteria) this;
        }

        public Criteria andPoPriceNotIn(List<BigDecimal> values) {
            addCriterion("po_price not in", values, "poPrice");
            return (Criteria) this;
        }

        public Criteria andPoPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("po_price between", value1, value2, "poPrice");
            return (Criteria) this;
        }

        public Criteria andPoPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("po_price not between", value1, value2, "poPrice");
            return (Criteria) this;
        }

        public Criteria andPoStartIsNull() {
            addCriterion("po_start is null");
            return (Criteria) this;
        }

        public Criteria andPoStartIsNotNull() {
            addCriterion("po_start is not null");
            return (Criteria) this;
        }

        public Criteria andPoStartEqualTo(Date value) {
            addCriterion("po_start =", value, "poStart");
            return (Criteria) this;
        }

        public Criteria andPoStartNotEqualTo(Date value) {
            addCriterion("po_start <>", value, "poStart");
            return (Criteria) this;
        }

        public Criteria andPoStartGreaterThan(Date value) {
            addCriterion("po_start >", value, "poStart");
            return (Criteria) this;
        }

        public Criteria andPoStartGreaterThanOrEqualTo(Date value) {
            addCriterion("po_start >=", value, "poStart");
            return (Criteria) this;
        }

        public Criteria andPoStartLessThan(Date value) {
            addCriterion("po_start <", value, "poStart");
            return (Criteria) this;
        }

        public Criteria andPoStartLessThanOrEqualTo(Date value) {
            addCriterion("po_start <=", value, "poStart");
            return (Criteria) this;
        }

        public Criteria andPoStartIn(List<Date> values) {
            addCriterion("po_start in", values, "poStart");
            return (Criteria) this;
        }

        public Criteria andPoStartNotIn(List<Date> values) {
            addCriterion("po_start not in", values, "poStart");
            return (Criteria) this;
        }

        public Criteria andPoStartBetween(Date value1, Date value2) {
            addCriterion("po_start between", value1, value2, "poStart");
            return (Criteria) this;
        }

        public Criteria andPoStartNotBetween(Date value1, Date value2) {
            addCriterion("po_start not between", value1, value2, "poStart");
            return (Criteria) this;
        }

        public Criteria andPoEndIsNull() {
            addCriterion("po_end is null");
            return (Criteria) this;
        }

        public Criteria andPoEndIsNotNull() {
            addCriterion("po_end is not null");
            return (Criteria) this;
        }

        public Criteria andPoEndEqualTo(Date value) {
            addCriterion("po_end =", value, "poEnd");
            return (Criteria) this;
        }

        public Criteria andPoEndNotEqualTo(Date value) {
            addCriterion("po_end <>", value, "poEnd");
            return (Criteria) this;
        }

        public Criteria andPoEndGreaterThan(Date value) {
            addCriterion("po_end >", value, "poEnd");
            return (Criteria) this;
        }

        public Criteria andPoEndGreaterThanOrEqualTo(Date value) {
            addCriterion("po_end >=", value, "poEnd");
            return (Criteria) this;
        }

        public Criteria andPoEndLessThan(Date value) {
            addCriterion("po_end <", value, "poEnd");
            return (Criteria) this;
        }

        public Criteria andPoEndLessThanOrEqualTo(Date value) {
            addCriterion("po_end <=", value, "poEnd");
            return (Criteria) this;
        }

        public Criteria andPoEndIn(List<Date> values) {
            addCriterion("po_end in", values, "poEnd");
            return (Criteria) this;
        }

        public Criteria andPoEndNotIn(List<Date> values) {
            addCriterion("po_end not in", values, "poEnd");
            return (Criteria) this;
        }

        public Criteria andPoEndBetween(Date value1, Date value2) {
            addCriterion("po_end between", value1, value2, "poEnd");
            return (Criteria) this;
        }

        public Criteria andPoEndNotBetween(Date value1, Date value2) {
            addCriterion("po_end not between", value1, value2, "poEnd");
            return (Criteria) this;
        }

        public Criteria andPoStateIsNull() {
            addCriterion("po_state is null");
            return (Criteria) this;
        }

        public Criteria andPoStateIsNotNull() {
            addCriterion("po_state is not null");
            return (Criteria) this;
        }

        public Criteria andPoStateEqualTo(Byte value) {
            addCriterion("po_state =", value, "poState");
            return (Criteria) this;
        }

        public Criteria andPoStateNotEqualTo(Byte value) {
            addCriterion("po_state <>", value, "poState");
            return (Criteria) this;
        }

        public Criteria andPoStateGreaterThan(Byte value) {
            addCriterion("po_state >", value, "poState");
            return (Criteria) this;
        }

        public Criteria andPoStateGreaterThanOrEqualTo(Byte value) {
            addCriterion("po_state >=", value, "poState");
            return (Criteria) this;
        }

        public Criteria andPoStateLessThan(Byte value) {
            addCriterion("po_state <", value, "poState");
            return (Criteria) this;
        }

        public Criteria andPoStateLessThanOrEqualTo(Byte value) {
            addCriterion("po_state <=", value, "poState");
            return (Criteria) this;
        }

        public Criteria andPoStateIn(List<Byte> values) {
            addCriterion("po_state in", values, "poState");
            return (Criteria) this;
        }

        public Criteria andPoStateNotIn(List<Byte> values) {
            addCriterion("po_state not in", values, "poState");
            return (Criteria) this;
        }

        public Criteria andPoStateBetween(Byte value1, Byte value2) {
            addCriterion("po_state between", value1, value2, "poState");
            return (Criteria) this;
        }

        public Criteria andPoStateNotBetween(Byte value1, Byte value2) {
            addCriterion("po_state not between", value1, value2, "poState");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}